package edu.tgc.repository.code;

import java.util.List;
import java.util.UUID;

import org.abyss.common.repository.CommonRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import edu.tgc.entity.code.TbScale;

@Repository
public interface ScaleRespository extends CommonRepository<TbScale, UUID> {

    public List<TbScale> findByXmTypeId(Integer id);

    // @Query(value="from TbScale t where t.xmType.id=? order by t.scaleValue desc")
    public Page<TbScale> findByXmTypeId(Integer xmTypeId, Pageable pageable);

    public List<TbScale> findByXmTypeIdAndScaleTypeOrderByScaleValue(Integer id, int i);

    public List<TbScale> findByXmTypeIdOrderByLevel(Integer id);
}
